const router = require('koa-router')();
const commentModel = require('../model/comment');
// 获取新闻
router.get('/comment', async (ctx, next) => {
    await commentModel.getComments(ctx);
});
// 增加新闻
router.post('/add/comment', async (ctx, next) => {
    await commentModel.addComments(ctx);
});
// 删除新闻
router.post('/delete/comment', async (ctx, next) => {
    await commentModel.deleteComments(ctx);
});
// 编辑新闻
// router.post('/edit/news', async (ctx, next) => {
//     await commentModel.editNews(ctx);
// });
module.exports = router;